using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Shrapnel
{
	/// <summary>
	/// An end-point node that serves as a wiring destination for the wire that is drawn during
	/// the wiring mode.
	/// </summary>
	class WiringDummy : Node
	{
		/// <summary>
		/// Create a fresh instance
		/// </summary>
		public WiringDummy()
		{
			PointF location = new PointF(0,0);

			// Our own area
			Areas.Box boxArea = new Shrapnel.Areas.Box();
			boxArea.BoxArea = new RectangleF(location.X, location.Y, 1, 1);

			OccupiedArea.Add(boxArea);

			// Our connector
			Connector connector = new Connector();
			boxArea = new Areas.Box();

			boxArea.BoxArea = new RectangleF(location.X - 1, location.Y - 1, 3, 3);
			connector.OccupiedArea.Add(boxArea);

			connector.CableOriginOffset = new SizeF(1, 1);
			Connectors.Add(connector);
		}
	}
}
